Skip to content

Make downstream tests conditional on fast tests passing - #965

Merged
Carreau merged 1 commit into
mainfrom
claude/test-downstream-ordering-tzgkd8
Aug 3, 2026
Merged

Make downstream tests conditional on fast tests passing#965
Carreau merged 1 commit into
mainfrom
claude/test-downstream-ordering-tzgkd8

Conversation

@Carreau

@Carreau Carreau commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

Refactored the downstream project testing workflow to run only after all fast test jobs have completed successfully, reducing unnecessary CI runner usage when the main test suite fails.

Key Changes

  • Modified .github/workflows/tests.yml to add a new downstream job that depends on all fast test jobs (tests, test_minimum_versions, test_lint, test_docs, test_prereleases, test_sdist)
  • Converted .github/workflows/downstream.yml from a standalone workflow triggered on push/pull_request to a reusable workflow called via workflow_call
  • Removed the on: push and on: pull_request triggers from downstream.yml
  • Removed the concurrency configuration from downstream.yml (no longer needed for a called workflow)

Implementation Details

The downstream workflow is now invoked as a reusable workflow from the main tests workflow, ensuring it only runs after all prerequisite fast tests pass. This prevents wasting CI runner resources on downstream project testing when traitlets itself has test failures.

https://claude.ai/code/session_01SQAvW1A6CBxpneLgjm4qJu

Downstream projects each take up to 10 minutes and are only informative
when traitlets itself is healthy, but they were running in parallel with
the regular test suite on every push and pull request.

GitHub Actions has no cross-workflow `needs`, so turn downstream.yml into
a reusable `workflow_call` workflow and invoke it from tests.yml behind
the fast jobs (tests, minimum versions, lint, docs, prereleases, sdist).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SQAvW1A6CBxpneLgjm4qJu
@Carreau
Carreau merged commit 9b49488 into main Aug 3, 2026
58 checks passed
@Carreau Carreau added this to the 5.17 milestone Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants